x86: Fix mwait usage when doing cpu offline
authorKeir Fraser <keir@xen.org>
Thu, 24 Feb 2011 09:32:41 +0000 (09:32 +0000)
committerKeir Fraser <keir@xen.org>
Thu, 24 Feb 2011 09:32:41 +0000 (09:32 +0000)
commit0132f2f2fc9b6c1ff6b4ae105a5d5bcdb2755836
treea79337ab67702aa23ba3c81ade8d4ac7cd6a767a
parent3af87a7ece7f27a537a006196873ca9fda696616
x86: Fix mwait usage when doing cpu offline

When cpu is offlined, it cannot access per cpu variable at all.
This patch avoids using per_cpu variable inside play_dead.

Signed-off-by: Shan Haitao <haitao.shan@intel.com>
Signed-off-by: Wei Gang <gang.wei@intel.com>
xen/arch/x86/acpi/cpu_idle.c